package www.wuhen.ltd.demos;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wuhen
 */
@RestController
public class MessageController {

    @GetMapping("/message")
    public ResponseEntity<String> generateMessage() {
        String message = "{\"message\":\"这是一个java发布的接口\"}";
        return new ResponseEntity<>(message, HttpStatus.OK);
    }
}